<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="fonts/iconfont.css">
    <link rel="stylesheet" href="css/login+register.css">
</head>
<body>
	<input type="hidden" id="uid" value="<s:property value="#session.existUser.userId"/>">
	<input type="hidden" id="nickName" value="<s:property value="#session.existUser.nickName"/>">
    <!--导航--> 
    <nav>
        <a id="turnindex" href="index.jsp"><img src="images/logo.png"></a>
        <span id="searchContainer">
	        <input id="search" type="text" placeholder="请搜索您喜欢的课程">
	        <span class="iconfont icon-sousuo"></span>
        </span>
        <span id="usermsg">
            <span class="clicks">
            	<s:if test="#session.existUser == null">
                <span id="login">登陆</span>
                <span id="register">注册</span>
                </s:if>
                <s:else>
                 <span id="user"><s:property value="#session.existUser.nickName"/></span>
                 <a href="person.jsp"><img id="usericon" src="images/usericon/user<s:property value="#session.existUser.userImg"/>.jpg"></a>
                 <a href="user_quit.action" id="exist">退出</a>
                </s:else>
            </span>
        </span>
    </nav>

	<div class="bg"></div>
	
	<!--登陆-->
	<div class="login">
	    <span class="goreg">去注册>></span>
	    <span class="iconfont icon-cha"></span>
	    <div class="username">
			<div class="iconfont icon-yonghuming"></div>
			<input id="l_name" type="text" placeholder="邮箱" value="yangchen302@163.com">
		</div>
		<span class="namewarn" id="u1"></span>
		<div class="password">
			<div class="iconfont icon-mima"></div>
			<input id="l_pwd" type="password" placeholder="密码6-16位数字字母，区分大小写" value="123456yy">
		</div>
		<span class="pwdwarn" id="p1"></span>
		<div class="message">
			<div class="remember">
				<input type="checkbox" id="autolog"> 自动登录
			</div>
			<div class="forget">
				<a href="">忘记密码</a>
			</div>
		</div>
		<div class="l_button">
		    <input type="button" value="登  录">
		</div>
	</div>

	<!--注册-->
	<div class="register">
	    <span class="golog">去登录>></span>
	    <span class="iconfont icon-cha"></span>
		<div class="username">
			<div class="iconfont icon-yonghuming"></div>
			<input id="r_name" type="text" placeholder="邮箱" value="yangchen302@163.com">
		</div>
		<span class="namewarn" id="u2"></span>
		<div class="password">
			<div class="iconfont icon-mima"></div>
			<input id="r_pwd" type="text" placeholder="密码6-16位数字字母，区分大小写" value="123456yy">
		</div>
		<span class="pwdwarn" id="p2"></span>
		<div class="r_pwdt">
			<div class="iconfont icon-querenmima"></div>
			<input id="r_pwdt" type="text" placeholder="再次输入密码" value="123456yy">
		</div>
		<span class="pwdwarn" id="p3"></span>
		<div class="nickname">
			<div class="iconfont icon-nickname"></div>
			<input id="r_nick" type="text" placeholder="请输入昵称" value="哈哈">
		</div>
		<span class="nickwarn" id="p4"></span>
		<div class="hobby">
			<span class="iconfont icon-moban14xingquaihao"></span>
			<div class="hs" id="hs"></div>
		</div>
		<span class="hobbywarn" id="h1"></span>
		<div class="code">
            <input id="r_code" type="text" placeholder="请输入验证码">
            <div id="codeMsg"></div>
            <div class="change">换一换</div>
		</div>
		<span class="codewarn" id="c1"></span>
		<div class="r_button">
		    <input type="button" value="注册"> 
		</div>
	</div>
   
    <script src="js/jquery-1.7.2.min.js"></script>
    <script src="js/login+register.js"></script>
</body>
</html>
 